package com.java.comprehensive.design.test.entity.vo;

import com.java.comprehensive.design.test.entity.dto.UserInfo;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: Dgg
 * @Date: 2021/9/24 20:05
 */
@Data
public class UserVo implements Cloneable, Serializable {
	private static final long serialVersionUID = 1L;
	private String name;

	private Integer age;

	private String stature;

	private UserInfo userInfo;

	@Override
	public UserVo clone() throws CloneNotSupportedException {
		UserVo user = (UserVo) super.clone();
		user.setUserInfo(this.userInfo.clone());
		return (UserVo) super.clone();
	}
}
